package com.meituan.sdk.model.ddzh.tuangou.tuangouProductQueryproductbytype;

import com.meituan.sdk.annotations.ApiMeta;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import com.meituan.sdk.internal.utils.JsonUtil;
import com.google.gson.annotations.SerializedName;
import javax.validation.constraints.NotNull;
import com.meituan.sdk.MeituanResponse;
import com.meituan.sdk.MeituanRequest;

/**
* 按商品类型查询门店商品信息
* This file was automatically generated.
*/
@ApiMeta(
    path = "/ddzh/tuangou/product/queryproductbytype",
    businessId = 58,
    apiVersion = "10034",
    apiName = "tuangou_product_queryproductbytype",
    needAuth = true
)
public class TuangouProductQueryproductbytypeRequest implements MeituanRequest<TuangouProductQueryproductbytypeResponse> {
    /**
    * <p data-diff-id="ct-diff-id-791200dd-7962-4956-b877-04de1a05fa26"><span style="color: rgb(31, 45, 61)">页码</span></p>
    */
    @SerializedName("pageNo")
    private Integer pageNo;
    /**
    * <p data-diff-id="ct-diff-id-526dcaee-22a5-466c-b5de-17da395a1869"><span style="color: rgb(31, 45, 61)">单页大小，最大限制100&nbsp;</span></p>
    */
    @SerializedName("pageSize")
    private Integer pageSize;
    /**
    * <p data-diff-id="ct-diff-id-c3467c5e-39bd-4759-9d0e-f1f681fb1fe7">商品类型。500-款式一口价，723-运动健身拼团，722-足疗按摩拼团，792-洗浴拼团，793-密室拼团，795-体检拼团，850-医美预付，922-丽人拼团，923-生活服务拼团，924-教育培训拼团，926-K歌拼团，1081-次卡，1359-结婚代金券，2000：医美预付拼团。若不确定具体商品类型，可通过在线咨询</p>
    */
    @NotNull(message = "type不能为空")
    @SerializedName("type")
    private Long type;

    public Integer getPageNo() {
        return pageNo;
    }
    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }
    public Integer getPageSize() {
        return pageSize;
    }
    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
    public Long getType() {
        return type;
    }
    public void setType(Long type) {
        this.type = type;
    }


    @Override
    public MeituanResponse<TuangouProductQueryproductbytypeResponse> deserializeResponse(String response) {
        Type type = new TypeToken<MeituanResponse<TuangouProductQueryproductbytypeResponse>>(){}.getType();
        return JsonUtil.fromJson(response, type);
    }
    @Override
    public String serializeToJson() {
        return JsonUtil.toJson(this);
    }


    @Override
    public String toString() {
        return "TuangouProductQueryproductbytypeRequest{" + "pageNo=" + pageNo + "," + "pageSize=" + pageSize + "," + "type=" + type + "}";
    }
}
